﻿

CREATE proc test.CheckUsers
@Users dbo.udtUsers readonly
as
begin

	if (select count(*) from @Users) > 0
	begin
		print '01'
	end

	select	*
	from	@Users
end
GO
GRANT EXECUTE
    ON OBJECT::[test].[CheckUsers] TO PUBLIC
    AS [dbo];

